/*global cordova*/
cordova.define('toast', function (require, exports, module) {
	var exec = require("cordova/exec");
	module.exports = {

        showShort: function (message, win, fail) {
            cordova.exec(win, fail, "Toasty", "show_short", [message]);
        },

        showLong: function (message, win, fail) {
            cordova.exec(win, fail, "Toasty", "show_long", [message]);
        },

        cancel: function (win, fail) {
            cordova.exec(win, fail, "Toasty", "cancel", []);
        }
    };
});
